<div class="maincourante">
  <div class="corps">
    <span class="ligne">
<!--      <form action="<?php echo url_for('maincourante/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?idmaincour='.$form->getObject()->getIdmaincour() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>-->
      <form action="<?php echo url_for('maincourante/create') ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
        <p>
          <span class="heure">Nouvelle saisie : </span>
          <span class="description"><?php echo $form['description'] // affiche le <textarea> ?><dfn class="details">Saisir ici la description de l'événement</dfn></span>
          <span class="suite"><?php echo $form['suite'] // affiche le <textarea> ?><dfn class="details">Saisir ici la suite de l'événement</dfn></span>
          <span class="bouton"><input type="submit" value="Enregistrer" /></span>
        </p>
        <?php echo $form->renderHiddenFields() ?>
      </form>
    </span>
    <span class="ligne entete debuttableau">
      <p>
        <span class="heure">Heure</span>
        <span class="description">Description</span>
        <span class="suite">Suite</span>
      </p>
    </span>
    <?php 
    $i = 0;
    $length = $main_courante_evenements->count();
    foreach ($main_courante_evenements as $main_courante_evenement): ?>
      <span class="ligne couleur<?php echo ($i%2 == 0) ? '1' : '2' ?> <?php // echo ($i == 0) ? 'debuttableau' : '' ?><?php echo ($i + 1 == $length) ? 'fintableau' : '' ?>">
        <p>
          <span class="heure" title="Date : <?php echo format_date($main_courante_evenement->getHeure(), "dd/MM/yyyy") ?>"><?php echo format_date($main_courante_evenement->getHeure(), sfConfig::get('app_heure_format')) ?></span>
          <span class="description"><?php echo $main_courante_evenement->getDescription() ?></span>
          <span class="suite"><?php echo $main_courante_evenement->getSuite() ?></span>
        </p>
      </span>
    <?php 
      $i++;
    endforeach; ?>
  </div>
  <span class="clear"></span>
</div>

<?php /**
<table class="maincourante">
  <thead>
    <tr>
      <th class="mc_heure">Heure</th>
      <th class="mc_description">Description</th>
      <th class="mc_suite">Suite</th>
    </tr>
    <form action="<?php echo url_for('maincourante/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?idmaincour='.$form->getObject()->getIdmaincour() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
      <tr>
        <td class="mc_heure"></td>
        <td class="mc_description"><?php echo $form['description'] // affiche le <textarea> ?></td>
        <td class="mc_suite"><?php echo $form['suite'] // affiche le <textarea> ?></td>
      </tr>
      <tr>
        <td colspan="3"><input type="submit" value="Enregistrer" /></td>
      </tr>
    </form>
  </thead>
  <tbody>
    <tr>
      <td></td>
      <td class="mc_heure"><?php echo $form['description'] // affiche le <textarea> ?></td>
      <td class="mc_heure"><?php echo $form['suite'] // affiche le <textarea> ?></td>
    </tr>
    <tr>
      <td colspan="3"><input type="submit" value="Enregistrer" /></td>
    </tr>
    <tr class="saisie">
      <td></td>

      </form>
    </tr>
    <?php foreach ($main_courante_evenements as $main_courante_evenement): ?>
    <tr>
      <!--
      <td><a href="<?php echo url_for('maincourante/show?idmaincour='.$main_courante_evenement->getIdmaincour()) ?>"><?php echo $main_courante_evenement->getIdmaincour() ?></a></td>
      -->
      <td class="mc_heure"><?php echo format_date($main_courante_evenement->getHeure(), "HH:mm:ss") ?></td>
      <td class="mc_description"><?php echo $main_courante_evenement->getDescription() ?></td>
      <td class="mc_suite"><?php echo $main_courante_evenement->getSuite() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>
 * 
 */
?>